<div class="right">
    <?php if(isset($this->userid) && $this->userid > 0){ ?>
    <div class="nav-right">
        <ul class="mynaviga">
            <li>
                <a title="Trang cá nhân" href="<?php echo $this->config['banbeurl'] ?>/<?php echo $this->user['url'] ?>/profile" class="">
                    <img height="20" width="20" class="photo-left-06" alt="" src="<?php echo $this->config['banbecdn'] .substr_replace($this->user['avatar'], '_32x32.',strrpos($this->user['avatar'],'.'), 1) ?>" id="imgavatarheader">
                    <span><?php echo Fpt_String::subString($this->user['displayname'],0,25) ?></span>
                </a>
            </li>

            <li class="tk">
                <a class="exit-blog" href="javascript:;">Tài khoản&nbsp;<span class="arrow-bottom">&nbsp;</span></a>
                <ul>
                    <li><span class="icon01 ico35 left">&nbsp;</span><a href="<?php echo $this->config['banbeurl'] ?>/system/message" target="_blank">Tin nhắn</a></li>
                    <li><span class="icon01 ico34 left">&nbsp;</span><a href="<?php echo $this->config['banbeurl'] ?>/<?php echo $this->user['url'] ?>/friend/index/searchfriends" target="_blank">Quản lý bạn bè</a></li>
                    <li><span class="icon01 ico70 left">&nbsp;</span><a href="<?php echo $this->config['fptid'] ?>/thay-doi-mat-khau.html" target="_blank">Thay đổi mật khẩu</a></li>
                    <li><span class="icon01 ico71 left">&nbsp;</span><a href="<?php echo $this->config['banbeurl'] ?>/<?php echo $this->user['url'] ?>/profile/basic/update" target="_blank">Cập nhật thông tin</a></li>
                    <li><span class="icon01 ico36 left">&nbsp;</span><span class="left"><a href="<?php echo $this->config['fptid'] ?>/logout" id="btnLogout">Thoát</a></span></li>
                </ul>
            </li>
        </ul>
    </div>
    <?php }else{ ?>
        <ul class="no_login">
            <li class="start">
                <span><a id="btnLogin" href="<?php echo $this->config['fptid'] ?>/dang-nhap.html">Đăng nhập</a></span>
            </li>
            <li class="end">
                <a href="<?php echo $this->config['fptid']; ?>/dang-ky.html" target="_blank" id="btnRegister">Đăng ký</a>
            </li>
        </ul>
    <?php } ?>

</div>